package com.supermap.application.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @ClassName TIndexSysType 目标指标类型
 * @Author HEKE
 * @Date 2019/2/21 17:01
 */
@Entity
@Table(name = "T_ECO_INDEX_SYS_TYPE")
public class TIndexSysType {

    //主键
    private String id;
    //目标体系编码
    private String index_sys_code;
    //指标类型名称
    private String name;
    //指标类型描述
    private String des;
    //排序
    private int sort;

    public TIndexSysType() {
    }

    public TIndexSysType(String id, String index_sys_code, String name, String des, int sort) {
        this.id = id;
        this.index_sys_code = index_sys_code;
        this.name = name;
        this.des = des;
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "TIndexSysType{" +
                "id='" + id + '\'' +
                ", index_sys_code='" + index_sys_code + '\'' +
                ", name='" + name + '\'' +
                ", des='" + des + '\'' +
                ", sort=" + sort +
                '}';
    }

    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "ID_", unique = true, nullable = false, precision = 10, scale = 0)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "INDEX_SYS_CODE_", length = 50)
    public String getIndex_sys_code() {
        return index_sys_code;
    }

    public void setIndex_sys_code(String index_sys_code) {
        this.index_sys_code = index_sys_code;
    }

    @Column(name = "NAME_",length = 255)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "DES_", length = 255)
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Column(name = "SORT_")
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }
}
